#!/usr/bin/env python
# -*- coding:utf-8 -*-
# author:HeWenjun
# datetime:2023/11/9 15:25
# software: PyCharm
def assemble_the_body(name, version, description):
    subject = f'咪咕OA{name}{version}版本年月日上线申请'
    html_text = f'''
            <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>
    <p>各位好：</p>
    <p style="color: red;">本次附件在svn上的地址：svn://10.148.91.3/咪咕统一信息平台/综合/OA综合-{name}/项目版本归档/{version}</p>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;本次OA{name}{version}版本已通过验收测试，现提交升级安排计划,升级具体安排如下:</p>
    <table cellpadding="5" cellspacing="0" border="1" style="font-size:15px;background: rgb(198, 224, 180);font-weight:lighter">
        <tr>
            <th>上线时间:</th>
            <td width="600">年月日22:00到年月日05:00</td>
        </tr>
        <tr>
            <th>上线功能描述:</th>
            <td width="600"></td>
        </tr>
        <tr>
            <th>业务影响时间</th>
            <td>年月日22:00到年月日05:00</td>
        </tr>
        <tr>
            <th>业务影响范围</th>
            <td></td>
        </tr>
        <tr>
            <th>业务影响现象</th>
            <td>升级期间咪咕OA{name}系统访问失败</td>
        </tr>
        <tr>
            <th>操作步骤</th>
            <td>
                1：更新咪咕{name}系统<br>
                2：启动咪咕系统应用，配置确认对比<br>
                3：功能验证
            </td>
        </tr>
        <tr>
            <th>现场负责人</th>
            <td>吴康13678196631 xxx</td>
        </tr>
        <tr>
            <th>系统维护支撑</th>
            <td>xxx</td>
        </tr>
        <tr>
            <th>功能测试支撑人员</th>
            <td>何文俊 18280435294</td>
        </tr>
        <tr>
            <th>升级后次日跟踪</th>
            <td>xxx xxx</td>
        </tr>
        <tr>
            <th>新增及优化功能说明</th>
            <td>
                {description}
            </td>
        </tr>
    </table>
    <div><br></div>
    <hr id="FMSigSeperator" style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
    <div><span id="_FoxFROMNAME"><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">何文俊 &nbsp; &nbsp; &nbsp; 测试工程师</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">手 机：18280435294</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">邮 箱：hewj@mochasoft.com.cn</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">网 址：http:// www.mochasoft.com.cn</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">地 址：<span
            style="line-height: normal;">北京市海淀区东北旺西路软件园（二期）华胜天成科研大楼5层（邮编：100193）</span></font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp; * &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* * &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">摩卡软件（天津）有限公司 &nbsp; Mocha Software Co., Ltd.</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">品质缔造卓越，创新成就未来</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp; * &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* * &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">未经发件人同意，请不要向任何人转发、复制本邮件内容。如果您并非该收件人或错收此邮件，请联系发件人</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">并退还此邮件，并请立即删除所有邮件及其附件。</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;"><br></font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">Please do not forward or copy the contents of this email to anyone without the consent of the sender.If this e-mail is not originally intended for you, or received by you in error, please contact the sender by return e-mail and do not disclose its content to anyone and destroy all copies of the original message immediately.</font></div></div></span>
    </div>
    </body>
    </html>
            '''
    return subject, html_text
